﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace login
{
    public partial class BasicForm : Form
    {
        public String name;

        public BasicForm()
        {
            InitializeComponent();
            this.StartPosition = FormStartPosition.CenterScreen;
        }

        private void buttonregister_Click(object sender, EventArgs e)
        {
            RegisterInfoForm registerinfoform = new RegisterInfoForm();
            this.Hide();
            registerinfoform.Show();
        }

        private void buttonlogin_Click(object sender, EventArgs e)
        {
            if(textname.Text.Trim() == ""){
                MessageBox.Show("请输入姓名");
                return;
            }
            //LoginCheckForm logincheckform = new LoginCheckForm(textname.Text.Trim());
            //this.Hide();
            //logincheckform.Show();
            name = textname.Text.Trim();
            DialogResult = DialogResult.OK;
        }
    }
}
